/*
 * @Author: wcx 1055127249@qq.com
 * @Date: 2025-01-07 17:31:46
 * @LastEditors: wcx 1055127249@qq.com
 * @LastEditTime: 2025-01-10 09:55:18
 * @FilePath: \my-project\src\views\CreateProcess\register\gateway.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import { Graph } from '@antv/x6'
import { createPods } from './ports'
Graph.registerNode(
  'gateway',
  {
    inherit: 'polygon',
    width: 50,
    height: 50,
    attrs: {
      body: {
        refPoints: '0,10 10,0 20,10 10,20',
        strokeWidth: 2,
        stroke: '#5F95FF',
        fill: 'transparent'
      },
      label: {
        text: '×',
        fontSize: 30,
        fill: '#5F95FF'
      },
    },
    ports: createPods('top', 'left', 'bottom', 'right')
  },
  true,
)